package com.mysimplenews.main.presenter;

import com.mysimplenews.R;
import com.mysimplenews.main.interfaces.MainViewInterface;

/**
 * Created by cxy on 2016/6/12.
 */
public class MainPresenterImp implements MainPresenter{

    private MainViewInterface mMainView;

    public MainPresenterImp(MainViewInterface mainView){
        this.mMainView = mainView;
    }

    @Override
    public void switchNavigation(int id) {
        switch (id){
            case R.id.navigation_item_news:
                mMainView.switch2News();
                break;
            case R.id.navigation_item_images:
                mMainView.switch2Images();
            case R.id.navigation_item_weather:
                mMainView.switch2Weather();
                break;
            case R.id.navigation_item_about:
                mMainView.switch2About();
                break;
        }
    }
}
